//定义枚举
enum Color{
    Red,Blue,Blank
}
console.log(Color.Red);

enum Color02{
    Red=1,
    Blue=2,
    Blank=3
}

enum Sex{
    男,女
}

let person:{name:string,age:number,sex:Sex}

person={
    name:'张三',
    age:26,
    sex:Sex.男
}